package com.lanyam.travel.base.entity.vo;


import com.lanyam.travel.base.entity.DistrTeam;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.List;


@Data
public class DistrTeamVo extends DistrTeam {

    private DistrTeam father;

    private List<DistrTeamVo> children;
    public static DistrTeamVo byRootDistrTeamGetDto(DistrTeam distrTeam) {
        DistrTeamVo distrTeamVo = new DistrTeamVo();
        BeanUtils.copyProperties(distrTeam, distrTeamVo);
        return distrTeamVo;
    }
	public DistrTeam getFather() {
		return father;
	}
	public void setFather(DistrTeam father) {
		this.father = father;
	}
	public List<DistrTeamVo> getChildren() {
		return children;
	}
	public void setChildren(List<DistrTeamVo> children) {
		this.children = children;
	}
    
}